got basic templates working