idx to root dir