fixed class tree script