mod to file