refactors run_munger().