add supporting didww_didrestore function