working for E19 processing, abstraction needed on the replicating function in plot-main. Also restructure folders