change location of root/noroot check