adding support for class enums