complete tree parsing script