fix enum decl
hacks to get it to work more