correctly handle xfer of empty file