add checkpoints.