add Default for ringbuf, reorder methods