     
     public func peripheralManagerDidUpdateState(peripheral: CBPeripheralManager!) {
         
+        waitingForBluetooth = false
         detectAndCallback()
     }
 

        assert(configuredPermissions.filter { $0.type == config.type }.isEmpty, "Permission for \(config.type.stringValue()) already set")
        
        configuredPermissions.append(config)
    }

    func permissionStyledButton(type: PermissionType) -> UIButton {

    }()

    lazy var bluetoothManager:CBPeripheralManager = {
        return CBPeripheralManager(delegate: self, queue: nil, options:[CBPeripheralManagerOptionShowPowerAlertKey: true])
    }()

    // internal state and resolution
