fixed error messages in file transfer functions