adds snapshot restoring