the stream detector