         }
     }
     
-    public func delete(peer: Clink.Peer) {
+    public func delete(peer: ClinkPeer) {
         UserDefaults.standard.removeObject(forKey: peer.id.uuidString)
     }
 }

        }
    }
    
    public func getSavedPeer(withId peerId: UUID) -> Clink.Peer? {
        guard let peerDict = UserDefaults.standard.dictionary(forKey: peerId.uuidString) else { return nil }
        
        return Clink.Peer(dict: peerDict)
    }
    
    public func getSavedPeers() -> [Clink.Peer] {
        return (UserDefaults.standard.stringArray(forKey: savedPeerIdsDefaultsKey) ?? []).flatMap { uuidString in
            guard let uuid = UUID(uuidString: uuidString) else { return nil }
            

                let service = services.filter({ $0.uuid == self.serviceId }).first,
                let chars = service.characteristics,
                let char = chars.filter({ $0.uuid == self.peerDataCharacteristic.uuid }).first
                else { return }
            
            peripheral.readValue(for: char)
            
        case peerDataCharacteristic.uuid:
            let peerManager = Clink.Configuration.peerManager ?? self
            
            guard
                let data = characteristic.value,
                let dict = NSKeyedUnarchiver.unarchiveObject(with: data) as? [String: Any],
                let peer = self.getSavedPeer(withId: peripheral.identifier)
            else {
                return
            }
            
            peer.data = dict
            
            peerManager.save(peer: peer)
            
            self.publish(notification: .updated(peer))
        default:
