add debugging to m command.