         process.exit()
 
 
+    return configFile    
+
+module.exports = Config
+
 # config = new Config "kite.databases.config-prod-new"
-config = new Config "main.prod-new"
+# config = new Config "main.prod-new"
 # config.on "result",(err,info)->
   #console.log err,info
 

    @configSchemaPath = nodePath.join __dirname+"/../../config/config.schema.coffee"
    @configFilePath   = nodePath.join __dirname+"/../../config/"+@path+".coffee"

    @check()

  check: ->
    normalizePathForSchema = (path,p=[])->

nodePath        = require 'path'

class Config extends EventEmitter

  @factory: (path)->
    return new Config path

  constructor : (@path)->
    @emit "start"
