print stats, command line improvements