fixed and renamed the nonblocking data_stream method