simplify rootcheck