add resolv check