fixing issue where nconf was used globally