autodetect URLS