clean up before compiling