added packetCapture to the constructor