refactored to nconf