dynamic loading of tree