sophia: snapshot file save/recover; prepare for integration