correct enum parsing