most of the time, they dont actually hold you. they just dont dismiss you. all you have to do is ask "are you detaining me officer, or can I go" since it is usually illegal for them to detain you then they must let you go. also not consenting to searches means no dog sniffs too. so just say you dont consent