write certain bodies to file