working on client/server tree building