better binning support