split all templates out