added nconf and password encryption