tree loader function