bugs with socket streams, implementation of stream_select and async socket streams