moved filter checking after detect stream