fix #303

add treeloader
Merge pull request #403 from dankeller/fix-303

fix #303