various script compiler funcs