fix for URL check; don't use Link module functions any more; remove dependency on Link