wrap a chaotic stream