update template to single file format