updated to use external config with nconf