cleanup in headless.lang.Parser