getting scripts more templatized