Added setuid when running as root.  Because there is alot of code in here that I don't fully understand.  so... yeah
added a little logging so you know when the UID transitions