FIX properly implementig permissions