compiles scripts