updated scripts for usage with root permissions