improve tree loading commit 1