     info = []
     for i,p of paths
       info.push [{path:i,inConfigSchema:p.schema,inConfigFile:p.file}]
-      where = if p.schema then "schema at #{@configSchemaPath}" else "file #{@configFilePath}"
+      where = unless p.schema then "schema at #{@configSchemaPath}" else "file #{@configFilePath}"
       console.log "[CONFIG CHECKER][ERROR] Inconsistent configuration at path:#{i} not found in #{where}"
 
     process.nextTick =>

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

    @check()

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

        process.exit()


    return configFile    

module.exports = Config

# config = new Config "kite.databases.config-prod-new"
# config = new Config "main.prod-new"
# config.on "result",(err,info)->
  #console.log err,info

