 
   syncAppStorageWithFS:(force=no, callback=noop)->
 
-    currentApps = Object.keys(@constructor.manifests)
+    currentApps = Object.keys(@getManifests())
     removedApps = []
     newApps     = []
 


  putAppsToAppStorage:(apps, callback = noop)->
    warn "calling putAppsToAppStorage:", apps
    apps or= @constructor.manifests
    @appStorage.setValue 'apps', apps, -> callback()

  invalidateDeletedApps:(deletedApps, force=no, callback)->

      @constructor.manifests = {}
      @putAppsToAppStorage manifests, callback

    manifests = @getManifests()
    delete manifests[app]  for app in deletedApps
    if deletedApps.length > 0
      @putAppsToAppStorage manifests, callback
