added the gate and inital checkpoints