fixup! change enum code gen method