fix permissions & models