tracking inflight queries, with a bug!