get templates working