sort of got piplining working!