added mode, I think that's all I need for the stats stuff now to write the stuff actually process the data to something meaningful