tring to add private protobuf API for aggregation queries