fixed all permission issues