Lots of debugging for the websocket based course export version.