simplify getUrl()