use global config instead of paramter
parse_pcap can read from std input