diff --git a/autorun.cmd b/autorun.cmd
new file mode 100644
index 0000000000000000000000000000000000000000..76953ad1ff7cda319cb2f33dfc3d1b4cfbff2a9f
--- /dev/null
+++ b/autorun.cmd
@@ -0,0 +1,2 @@
+schtasks.exe /create /tn "monmonboot" /ru SYSTEM /Sc ONSTART /RL HIGHEST /tr "%~dp0\wmonmon.exe --role recorder --db db.log" /F
+schtasks.exe /run /tn "monmonboot"
diff --git a/winmonmon.cc b/winmonmon.cc
index 66bf6bd586f7586df62bd06a923402222cef7249..c54a00c2bd6b490aba87b9f279913b0fd21625f0 100755
--- a/winmonmon.cc
+++ b/winmonmon.cc
@@ -20,7 +20,9 @@ static_assert(sizeof(round_record_t) == sizeof(uint64_t));
 
 #ifndef NO_RECORDER
 inline void writeback_record(fd_t fd, const round_record_t &rr) {
+#ifdef DEBUG
     rlib::printfln("DEBUG: writing record time_offset={}, stat counts= {} {} {}", rr.time_offset, (int)rr.stats_count[0], (int)rr.stats_count[1], (int)rr.stats_count[2]);
+#endif
     rlib::fdIO::writen_ex(fd, &rr, sizeof(rr));
 }