master fix permissions and categories