made root privileges optional