filetransfer: use asynchronous stream reads