add as query handler.