add stream mode