added a config key check