bad hack: use async file transfer.

the 'end' from the http request calls earlier than the write of the file-stream.