implemented thread switching and status updates for current stream