add getUrl method