     
     private func checkForNewerVersion() {
         APIManager.sharedInstance.getVersion() { version, error in
-            guard let latestVersionString = version?.latest, currentVersionString = NSBundle.mainBundle().infoDictionary?["CFBundleShortVersionString"] as? String else {
+            guard let latestVersionString = version?.latest else {
                 Log.error?.message("could not get latest version")
                 return
             }

import CleanroomLogger

@objc(BeleefDeLenteView) class BeleefDeLenteView: ScreenSaverView, NSUserNotificationCenterDelegate {
    static var birds: [Bird]?
    private var player: AVPlayer?
    

            }
            
            let latestVersion = versionToArray(latestVersionString)
            let currentVersion = versionToArray(BeleefDeLenteView.currentVersion)
            
            // check there is a newer version available
            if currentVersion.lexicographicalCompare(latestVersion) {
                Log.error?.message("newer version (\(latestVersionString)) available at https://github.com/4np/BeleefDeLente/releases/latest (currently installed: \(BeleefDeLenteView.currentVersion))")

                let notification = NSUserNotification()
                notification.title = "Beleef De Lente Screensaver"
                notification.subtitle = "Nieuwere versie van de screensaver beschikbaar"
                notification.informativeText = "U wordt verzocht de vernieuwde versie van de 'Beleef De Lente' screensaver te installeren. \(BeleefDeLenteView.currentVersion) -- \(latestVersionString)"
                notification.soundName = NSUserNotificationDefaultSoundName

                let center = NSUserNotificationCenter.defaultUserNotificationCenter()
