clean up file hierarchies