rebuild the rquire tree