 
 # Configuration file
 for k, v of require(path.resolve(exports.CONFIG_DIR, 'config'))
-  if defaults[k]?
-    exports[k] ?= common.matchType(defaults[k], v)
+  setConfig(k, v)
 
 
 # Defaults
 for k, v of defaults
-  exports[k] ?= defaults[k]
+  setConfig(k, v)
 
 
 # load parameter configurations

# Environment variable
for k, v of process.env
  k = k[9..] # remove "GENIEACS_" prefix
  if defaults[k]?
    exports[k] ?= common.matchType(defaults[k], v)


# Find config dir

    v = argv.shift()
    exports.argv[arg] = v
    n = arg[2..].toUpperCase().replace(/-/g, '_')
    setConfig(n, v)
  else
    exports.argv.push(arg)

