added reachability to script