introduce buffering for github download