Repackaging and rearrangement of files