thread traverse tree done and add make file