merge all templates into one