use stream2stream