move givePerms to utils