this should be put in a different method, something like is_perm?