added enums.of() api