fix multi-batch bugs.  add human-readable output.