added reusable code--good for scripts
deter users from using single user mode