add sniffer and correct websocket