got templates working