fix to define the stream so it can emit errors
2.3.2