refactors url-creation.