save the filename last used for plotting