dump now returns a stream