finalize some of the statistics and output options