improved link searching in http.lookupLink