update code for Platform Sniff