add stream sniffing