cleaned up pipeline script
More script updates.