Fixing some bugs, updating the processresponse for rest query abstract