some work on the permissions