Add new api of stream and instance for multi-instance