add support for cursor based aggregations