trying fix the permission system