updated compiling script