add clone to support reg write callback
Merge branch 'develop' into aof-feature