change CheckpointState from class to enum #22