added enums code generation