made send_to_ringbuffer work properly
added a  small work around for get_data_from_ringbuffer