readable stream pipes to writable stream