                         for noti in center.deliveredNotifications {
                             if noti.identifier == push["notification_id"].string {
                                 center.removeDeliveredNotification(noti)
-                                print("Removed a noti (", noti.identifier, ")")
+                                print("Removed a noti (", noti.identifier!, ")")
                             }
                         }
                         var i = -1, indexToBeRemoved = -1

                    }
                }
                break;
                
            case .ContentsClicked:
                Alamofire.request(.GET, "https://update.pushbullet.com/android_mapping.json")
                    .responseString { response in

    }
    
    //fixme
//    func userNotificationCenter(center: NSUserNotificationCenter, didDismissNotification notification: NSUserNotification) {
//        for item in pushHistory {
//            if item["notification_id"].string == notification.identifier && item["type"].string == "mirror" {
//                ephemerals.dismissPush(item, trigger_key: nil)
//                break;
//            }
//        }
//    }
    
    func userNotificationCenter(center: NSUserNotificationCenter, didActivateNotification notification: NSUserNotification) {
        switch notification.activationType {
