manually walk inside tree to get oid for a path