added templateHandler