ensure that all blocks are read before returing data