add a function to make a stream writable