separated munging, plots, and file output.