enums by id support