added query parameters to api calls