added template resource resolver