added debug to pcap opening