added save plots option