script to compile