fixed the -r functionality, was double calling pcapy