split out templates