added stats and beginnings of logger singleton