improve cast sniff