updated connection to allow connection to have additional query parameters than just access token.