minor changes to support in-memory histograms