option to use heuristics to locate the target document url
refactoring