fix perms, and make it only function if youve changed "location"