moved enums to its own package