closures and checkpoints