a few minor improvments to XML and plot_sfr_flows