clean and precompile