snapshot and recovery work