stream and pipe