heavy refactoring of UrlsLoader.php class