changes _getUrl to getUrl and set to public