added command-log-mode