added simple plot script before changes