to use the cmd not self.factory.cmd to print out the cmd content.

because factory.cmd has been replaced by the factory.cmds