Rebuild file handling