convert stats in bigger batches when running from commandline