fixes on various places and implementation of the arp timeout tick