Refinements to allow initialization without endpoint_url