query working, api calls successful