added check for config value existence