feature: added the ability to restore from a snapshot.