add buffer to speed up download.