1 make_plots use global vars, needs more changes