added del_ip, del_mac functions