replaced template script file