clean up before compiling
fixed analyse task