added template resolver
adapted config