corrected api_connection params