invalid enum should be catched now