rebuild file structure