fix return codes on root check