added filetype to template output