bug fixes and pipe building dsl improvements