s/memory/cs/g
s/value/val/g in cstate.rs for consistency