explain how to use checkpoints