added getUrl method