add templates to files