made restore configurable