fixed create_run_script mode