add stream.reset()