debug for file transfer