add cmd to mem save