add template resolver