add script and plot