add stream mode check