WIP: add support for multistreams.