compatibility with Streams2