modify dir tree