add reachability check