practice laying on flat surfaces in public spaces, scout out areas that look okay, and then move between them throughout the night if people bother you. as for security, what i used to do was put myself in a corner or back alley, and then hide between my flipped shopping cart and a wall/ trash...