added support for template processing of config variables