started adding stats logging