         else if stat.isDirectory()
           packageDir = modulePath
         else
-          # return with no error at all if i cant find the module dir...... copying the sync impl. =(
+          # return with no error at all if i cant find the module dir.
           return cb()
 
-        @_registryLoadGrammarsDir(packageDir,cb)
+
+        grammarsDir = path.resolve(packageDir, 'grammars')
+        console.log('grammarsDir  --------> ',grammarsDir)
+        @_registryLoadGrammarsDir(grammarsDir,cb)
 
       )
 

      if !--todo
        cb()

    fs.readdir(dir, (err, files)->
      if err
        return cb(err)
      todo = files.length

      grammarPath = path.join(dir, file)
      # CSON.resolve uses fs.isFileSync we'll have to check it in the next step but only on valid files.
      if CSON.isObjectPath(grammarPath)
        @_registryLoadGrammar(grammarPath,(err)->
          done(err)
        )
    )

  _registryLoadGrammar:(grammarPath,cb)->
    fs.stat(grammarPath,(err,stat)->
      if err
        return cb(err)



        cb(false,true)
   
    if(!toLoad)
      toLoad = 1
      return done()

    while grammarsArray.length
      @registry.loadGrammar(grammarsArray.shift(),done)

