more work on flowline plot script