find a path to root