added coprocessor for pivoted queries