 				if let file = sessionController?.session.workspace.file(withId: attachment.fileId) {
 					webController?.loadLocalFile(sessionController!.session.fileCache.validUrl(for: file))
 					selectedOutputTab = .webKit
-					//TODO: implement option to check by filename if not found by id
 				} else {
 					//TODO: report error
 					os_log("error getting file attachment to display: %d", log: .app, attachment.fileId)

		super.viewWillAppear()
		selectedOutputTab = .console
		consoleController = firstChildViewController(self)
		consoleController?.viewFileOrImage = displayFileAttachment
		imageController = firstChildViewController(self)
		imageController?.imageCache = imageCache
		webController = firstChildViewController(self)

		selectedOutputTab = .console
	}
	
	func displayAttachment(_ fileWrapper: FileWrapper) {
		os_log("told to display file %{public}@", log: .app, type:.info, fileWrapper.filename!)
		guard let attachment = try? MacConsoleAttachment.from(data: fileWrapper.regularFileContents!) else {
			os_log("asked to display invalid attachment", log: .app)
