extend command interface with ToMessagePack and FromMessagePack