define "has" instead of deprecated "sniff" module