checkpoints.cpp