 		for (index, aFileToImport) in files.enumerated() {
 			let srcUrl = tmpDir.appendingPathComponent(aFileToImport.actualFileName)
 			do {
+				// hard link to ignore user changes or deletion
 				try fileManager.linkItem(at: aFileToImport.fileUrl, to: srcUrl)
 			} catch {
 				Log.error("failed to create link for upload: \(error)", .network)
 				return ProgressSignalProducer(error: Rc2Error(type: .file, nested: error, explanation: ""))
 			}
+			// should url creation be done here? might be better elsewhere for reuse
 			let destUrl = URL(string: "\(conInfo.host.urlPrefix)/file/\(workspace.wspaceId)", relativeTo: baseUrl)!
 			var request = URLRequest(url: destUrl)
 			request.httpMethod = "POST"

	struct ImportData {
		var task: URLSessionUploadTask
		var srcFile: URL
		var bytesDownloaded: Int = 0
		var data: Data
		
		init(task: URLSessionUploadTask, srcFile: URL) {

		guard let index = tasks.filter({ $0.value.task == task }).map({ $0.key }).first, tasks[index] != nil else {
			fatalError("failed to find progress for task of \(task.taskIdentifier)")
		}
		tasks[index]!.bytesUploaded = Int(totalBytesSent)
		calculateAndSendProgress()
	}
	
