add some debug to runtime.restore()