write all bodies to files