add command-log-mode