reading larger amount of data from a pipe