added aggregation support. just histogram right now.