ringbuf: working