ensuring proper perms