build-totals should work differently now