runs two reps when mode == "debug"