support enums in api returns