add check routine for ROOTSYS