working version. successfully runs one block. pre data piping.