now saves figs and params