added code for creating new checkpoints