finish codiing for file transfer, not workable