split script into compile.sh and run.sh