working on getting set_perms() to work correctly