update for new TcpStream API