updated checkpoints and put checkpoints code back