better handling of config-var