fix reading of pcap files