more work on output file transfer