adopted new lazyflow api