plot script v1.1 is now working