added arp cache purification, debug mode