add support for named enums
add specs for named enums