added some changes to plot scripts