ints not large enough for total bytes -- switched to long closes #883