session snapshots and writing session to disk and partial loading