get stuff back to a compilable state