using nconf to connect