simplify rootpath