replace hard-coded nave with template