updated script to compile