bug fix
implement icmp encode