reworked check_icmp