added resource_url method to the client