refactor url ref