updated script_template