fixing get_api_config