add the template name to the file object