generate stats once everything is done, namely after fsck