put checkpoints in parsing code