debugwrite update