use config.key instead of config[key]