now support to dispose of query by pid