cleanup in lang-gen parser