class permissions fix