revise the dir tree