moved things into PermClass