tmpl in script