add checkpoint storing.