updated the stream the the version 3.1.

Huge performance improvement due to a better events handling.