add in root and check command

ok, I see. This is fine. I was worried maybe the if statement meant to do something more.