intergrate evaluation to query handler.