fix api_key usage