add support for operations (avg, percentile) on raw data.