change output format, add some stats