added snapshot/restore.