first attempt at pipeline script