updated to include code sniffing