make slow byte-counting optional