remove char loop from ring buffer, added stats class