A bungled poll and the gruesome murder of a senior official in charge of voting technology in 2017 still haunts Kenya, ahead of the elections next week.
The chairman of the independent electoral commission has repeatedly sought to reassure a sceptical public that his team can deliver a credible vote, but he has also been warning about a co-ordinated campaign, especially on social media, to malign and intimidate his workers.
"Our staff in the commission, especially [those in] ICT are now frightened… I just want to urge the people behind it to stop what they are doing," Wafula Chebukati told journalists.
He has valid reasons to be worried: five years ago his then head of technology, Chris Msando, was kidnapped and brutally murdered, along with his friend 21-year-old Carol Ngumbu.
Their bodies were found in bushes on the outskirts of the capital, Nairobi - and no-one has been arrested or charged for the killings which remain shrouded in mystery.
"Surely with a professional police service and a professional and effective government we would have some closure on this matter… The nation does not know who took the life of an elections official who was handling a very sensitive part of the elections," Amnesty International Kenya's Executive Director Irũngũ Houghton told a local TV station recently.
With a friendly and calm manner, Mr Msando had been a regular on local TV stations, demonstrating the measures he had taken to ensure the election was not rigged.
"Dead voters will not rise on my watch," he said in one interview.
He had put his confidence in biometric data to verify voters using fingerprints and an electronic system to transmit the results.
The use of such technology was adopted following the fallout of the 2007 polls when accusations of ballot stuffing triggered weeks of violence in which at least 1,200 people were killed and some 600,000 fled their homes. At the time the then electoral commission chairman even admitted he was not sure who had won.
This election looks like it too will be a tight presidential race - between frontrunners Raila Odinga, a long-serving opposition leader who is running for president for a fifth time, and Deputy President William Ruto.
'Technology is not democracy'
Making things more dramatic, outgoing President Uhuru Kenyatta is rooting for Mr Odinga, a nemesis-turned-ally, to succeed him following a breakdown of his relationship with Mr Ruto.
Voters will also be choosing governors, senators, MPs and county assembly members.
Yet the increasing use of technology in the three polls since 2007 has not delivered credibility - and in 2017 it led to the Supreme Court overturning the vote and ordering a new election.
"Despite the failures in 2013, more tech was procured in 2017. The cost of the election jumped from $10 [£8] per registered voter in the first election to $25 in the rerun, earning Kenya the dubious honour of holding the most expensive elections in Africa," Nanjira Sambuli, a technology and governance analyst, told the BBC.
"Technology is not democracy, " Ms Sambuli said.
The Supreme Court ruled the August 2017 vote "invalid, null and void" as some 10,000 polling stations failed to transmit the votes.
"This was a significant number, plus the electoral commission gave excuses when they were asked to open computer servers for a review of what happened," constitutional lawyer James Mamboleo told the BBC.
"They said the commission must be accountable to the people in all processes from voter registration to an effective transmission system."
The ruling dented confidence in Mr Chebukati, but he managed to stay in the job despite relentless pressure for him to resign.
This time round the commission will reuse tens of thousands of election voter verification kits bought for the October 2017 rerun and has tightened up its procedures.
The electoral commission had planned to exclusively use the electronic system to identify voters, but a last-minute court judgement has ruled that a physical printed register should also be available in case the biometric system fails.
Results will be sent digitally from more than 40,000 polling stations instead of a text message, which was the method previously used.
This is how it will work for the presidential ballot:
All voters will have to be verified using either a fingerprint or an identity card
After polls close, an image of the results form, signed by the presiding officer and party agents, will be electronically transmitted using the integrated voting kit to the tallying centres at the constituency and national levels
A copy of the form will be given to party agents and posted outside of the polling station
Voter verification kits will be geo-locked to individual polling stations to prevent fraud
The winner will only be announced after the physical results form is received by the commission to verify it against the photo initially sent.
"We are going to make it very difficult in this election for people to go to court to challenge the results that we have, because we are so transparent that even if they want to go to court, they would be very embarrassed to do so," one of the electoral commissioners, Justus Nyangaya, told the BBC.
He also said that the voter identification kit would be sending information to the national tallying centre every two hours, which he says will scupper attempts to stuff ballot boxes.
Still tormented by the last election, the electoral commission chairman has also urged the media, political parties and civil societies to do their own tallying of votes.
"Chebukati is intent on making amends by taking full responsibility as the chair, and instituting a system that will guarantee a free, fair, transparent and verifiable elections to exonerate himself from the legacy of the chairman known for bungled elections," political analyst Hesbon Owila told the BBC.
"As an individual he has learnt from the past, but as Kenyans, we can... also be vigilant."
Mr Mamboleo agrees: "Has the electoral commission tried to live up to the high standards set by that 2017 Supreme Court ruling? In my view, it's yes. They have engaged political parties, candidates, and the public in ways we haven't seen in past elections."
A call for justice
By law, the electoral commission has seven days after the vote to declare the winners - and by encouraging the media and others to tally results Mr Chebukati hopes the transparency will vindicate him and the commission.
It would certainly be an important milestone for Kenya if this was achieved.
As Mr Msando and Ms Ngumbu's families marked the fifth anniversary of their murders last month, they again said Kenya's democracy should be anchored in the rule of law - and hoped one day they too will get justice.
"We pray that one day we get to know the truth," Mr Msando's family wrote in an obituary in one of the local papers.
RAILA ODINGA: How a handshake changed Odinga's Kenyan heartland
WILLIAM RUTO: Why Kenyan farmers like a man with big ambitions
UHURU KENYATTA: How Kenya's president has split his people over poll
READ MORE: Full coverage