switch to using nconf rather than object