support enum parsing