fixed NaN hists and supports parallel...