source cleanup, separated ringbuffer for re-usage in hos-toolbox