output format restructuring, save/save_ex now take a format argument