         self.downloadModules_ moduleNames
 
     requireMethod.addPath = (module, path) -> self.addPath(module, path)
+    requireMethod.setCurrentPath = (path) -> self.setCurrentPath(path)
     [requireMethod]
 
 

        url = @config_.paths[name]
        unless url
          console.log "Invalid url for module '#{name}': #{url}", @config_.paths
          return

        # console.log 'module ' + name + ' @ URL: ' + url
        loader = new ModuleLoader url, (error) ->
          if error
            console.log error
          else
            # console.log 'module ' + name + " loaded"
        loader.start()
      else
        # console.log 'already downloading module ' + name


    # console.log (@moduleStates_[@extractModuleName_(name)] is state)
    @moduleStates_[name] is state

  # areInState_: (names, state) ->
  #   for name in names
  #     if not @isInState_(name, state)
  #       # console.log name
  #       return no
  #   yes



