what's the purpose of this conditions on `provider_type`?