use NetworkStream in client