rearranges folder structure