Kenya's electoral body says it is facing more than 300 court cases from candidates, parties and civil society groups before elections on August 8, raising concern about whether the disputes can be resolved in time.
President Uhuru Kenyatta will again face his arch-nemesis, Raila Odinga, a veteran opposition leader. Kenyatta is the son of Kenya's first president and the urbane scion of a wealthy family, while Odinga is the son of the first vice president and a fiery populist.
Any doubts over the legality of the elections could spark protests by candidates contesting presidential, legislative or local seats. Odinga has said that the last two elections, both marred by irregularities, were rigged.
In 2007, he called for street protests, sparking ethnic violence that killed more than 1,200 people. In 2013, when Kenyan government leaders faced charges at the International Criminal Court, he went to court but much of his testimony was dismissed on technicalities.
Paul Mwangi, the head of Odinga's legal team, said he had lost count of the number of cases they had filed against the Independent Electoral and Boundaries Commission (IEBC).
They have demanded that electronic systems be foolproof and that results announced at constituency level be final to remove the possibility of tampering in Nairobi. They have also lodged a complaint saying the company printing ballot papers is too close to Kenyatta.
The first case will be decided Friday, the second was lost on appeal and the third was won.
Attempt to delay seen
The government argues the legal battles are an attempt to delay the elections and pave the way for power-sharing. "If that date is vacated, this republic will be thrown into a constitutional crisis," Attorney General Githu Muigai said before the high court.
Chrispine Owiye, overseeing the electoral body's legal response, said the flood of cases could indicate a newfound faith in the democratic system.
"We've opened up a flurry of complaints because people now believe they can get justice from IEBC," he said.
The opposition are not the only ones suing. There are 8,000 independent candidates vying for lucrative seats in this election, and many of them have lodged cases. During the last election, there were only 300.
Civil society groups have also filed cases. The Africa Center for Open Governance wants the voter registry to be public.
A KPMG audit report said the registry contained irregularities; IEBC says it has addressed these, but the center says it is impossible to tell until the registry is public.
"Three weeks to the election, we don't have the register published," said Gladwell Otieno, director of the center. "The reason people are going to court is because IEBC isn't doing the right thing."