refactor getUrl() => toString()