add plot script to be save