killed data flow analysis (perhaps) and improved ringbuffer