compiling script in place