correcting references to api_key