start reintegrating front end
roughly integrated tree with front end