return a tree to browser