fix read_io
add nc based tests for events drain and data