move tpls to config
dont nest it