ais query upgrade to mimic axios behaviour