stream downloaded files

fixes #67 and out of heap space error