 
   addPath: (module, path) ->
     @config_.paths[module] = path;
+
+  setCurrentPath: (path) ->
+    @files_[path] = MKModuleManager.ModuleState.Installed
 
   define: () ->
     # console.log 'define() called!'

    @completion = completion

  start: () ->
    # console.log 'appending element'
    _headElement = document['head'] || document.getElementsByTagName('head')[0]
    _headElement.insertBefore(@_element, _headElement.firstChild)


    # put pending calls awaiting for modules to be downloaded.
    @pendingCalls_ = []
    # @moduleURLs_ = {} no needed anymore
    @files_ = {}
    @config_ =
      paths: {}
    # context used to call the modules.
