precompile the right script