Refactoring write_loss_map
updated _export_common