# Upgrade 0.9 -> 0.10

Notable API changes include:

* `Coherence.Network` is removed now. `OnConnected` and `OnDisconnected` events are moved to `IClient` and have changed a signature:

```csharp
    private void OnEnable()
    {
        if (!BridgeStore.TryGetBridge(gameObject.scene, out CoherenceBridge Bridge))
            return; 
        
        client = Bridge.Client;
        client.OnConnected += OnConnect;
        client.OnDisconnected += OnDisconnect;
    }

    private void OnDisable()
    {
        client.OnConnected -= OnConnect;
        client.OnDisconnected -= OnDisconnect;
    }

    private void OnConnect(ushort u)
    {
        onConnect.Invoke();
    }

    private void OnDisconnect(ConnectionCloseReason reason)
    {
        onDisconnect.Invoke();
    }
```

* `BridgeStore.GetBridge` is now obsolete, and will be replaced with\
  `BridgeStore.TryGetBridge`.

```csharp
BridgeStore.TryGetBridge(gameObject.scene, out Bridge);
```

* `CoherenceSync.isSimulated` is now obsolete, and will be replaced with `CoherenceSync.HasStateAuthority`.
* `CoherenceSync.RequestAuthority` is now obsolete, and will be replaced with `CoherenceSync.RequestAuthority(AuthorityType).`

{% hint style="info" %}
For more information, see [Release Notes](https://docs.coherence.io/1.2.4/support/release-notes).
{% endhint %}

{% hint style="info" %}
For detailed documentation of the updated CoherenceSync component, see [CoherenceSync](https://docs.coherence.io/1.2.4/manual/components/coherence-sync).
{% endhint %}

#### CLI Tools

The CLI tools have been updated, especially the ones that handle Simulators. To learn more about this, see [CLI](https://docs.coherence.io/1.2.4/manual/advanced-topics/command-line-interface) utilities.
