use stream pipi instead of deprecated pump method