       return pack if pack = @getLoadedPackage(name)
       pack = Package.load(packagePath, options)
       if pack.metadata.theme
-        @themes.register(pack)
+        atom.themes.register(pack)
       else
         @loadedPackages[pack.name] = pack
       pack


module.exports =
class PackageManager
  loadedPackages: {}
  activePackages: {}
  packageStates: {}

EventEmitter = require './event-emitter'
fsUtils = require './fs-utils'
_ = require './underscore-extensions'
Package = require './package'
