move digest to rdb
add decode/restore commands
update cmd decode
update decoder