minor changes w.r.to printing stats and logs