enforce robustness of URL determination