         client.postMessage(messageToPostField.text, roomID: roomIDToPostField.text, files: []) { response in
             switch response {
             case .Success(let postMessage):
-                NSLog("message posted successfully: \(postMessage().messageID)")
+                NSLog("message posted successfully: \(postMessage.value.messageID)")
                 self.messageToPostField.text = ""
             case .Failure(let error):
                 NSLog("failed to post message: \(error)")

        client.roomList { response in
            switch response {
            case .Success(let many):
                let rooms = many().items
                NSLog("rooms: " + rooms.map{"\($0.name)(\($0.id))"}.description)
            case .Failure(let error):
                NSLog("failed to list rooms: \(error)")

        client.user() { response in
            switch response {
            case .Success(let user):
                self.usernameLabel.text = "logged in as \(user.value.name)"
            case .Failure(let error):
                self.usernameLabel.text = "cannot log in: \(error)"
            }
