add support for named enums