first attempt at pipelines etc