adapt to API changes in binning