adding query proxying