 		outputView?.navigationDelegate = self
 		// if have webview and wasn't loaded, suspend the queue
 		ensureResourcesLoaded()
-		context.signal.observeValues { (_) in
+		editorContext.signal.observeValues { (_) in
 			print("got new context)")
 		}
 	}

			Log.warn("preview update witout a document", .app)
			return
		}
		guard var preview = previewData[response.previewId] else { return }
		var toCache = [response.chunkId]
		preview.codeHandler.cacheCode(changedChunks: &toCache, in: doc)

	}
	
	func setEditorContext(_ econtext: EditorContext?) {
		precondition(editorContext.value == nil)
		editorContext.value = econtext
	}
	
	private func loadWebView() {
