several organization changes.  moved all "stats" related methods to stats.rb