rename files to template name