restore scan.fileName variable to keep interface the same for some legacy clients