add a template file