use super instead of explicit parent class
move mdig.command_dump into log, plus a little refactor