move Enum from types to core