add SetPermissions support