working out upgrade tree