pass save_flag as an input to mha2cerr function