reorganize and prune files