NAIROBI - South Sudan's government and rebels have signed a ceasefire, but analysts warn that bringing battling gunmen on the ground under control and making the truce stick is far from guaranteed.
Weeks of war in the impoverished young nation is feared to have spiralled out of the control of the political leaders, who themselves bickered for weeks to agree even a first stage deal, signed late Thursday in a luxury hotel in neighbouring Ethiopia.
But even as the ceasefire was signed, government delegation head Nhial Deng Nhial said he was sceptical of the rebels' capacity to rein in their forces, "given that the bulk of the rebels are made up of civilians" - essentially any one of the countless people who have kept hold of their guns after decades of conflict.
The fighting has seen waves of brutal revenge attacks, as fighters and ethnic militia use the violence to loot and settle old scores, with the United Nations and rights workers reporting that horrific atrocities have been committed by both sides.
Finding a deal for lasting peace - and implementing that on the ground - will be the hard part.
"Anything that stops the fighting is welcomed, but it is obvious to say, implementation is key, and past deals in South Sudan have remained little more than ink on paper," said a Western diplomat.
"These two sides have gone so far in a few short weeks... it was hard enough to get the delegations in Ethiopia to the table, let alone those who have been doing the actual fighting."
The world's newest nation has been at war since December 15, with thousands killed and close to half a million forced to flee their homes. Some have sought refuge in UN bases from the ethnic violence, other to large, squalid camps while tens of thousands of others have fled to neighbouring countries.
There will be no quick fix: billions of dollars worth of international aid, advice and development help were already poured in to the fledgling nation after the end of civil war with Sudan in 2005, but that cash apparently did little to prevent the terrifyingly swift collapse of the state.
Out of control?
Even for the most careful watchers of the complex power struggles of South Sudan, the conflict - and its brutal nature with neighbour turning on neighbour - were shockingly fast.
The cessation of hostilities deal, only the first of many steps to hammer out a final peace deal and pave the way for badly-need national reconciliation, leaves a volatile situation on the ground.
Jok Madut Jok, a former senior government official and academic now running the Sudd Institute, said the challenges were huge.
A political settlement, including a potential future deal to compromise on power sharing, could "increase the level of impunity and reward for those who engage in violent efforts to get political office," Jok said.
Many are deeply pessimistic that even with a deal in place, the conflict pitting members of Kiir's Dinka people - the country's largest group - against Machar's Nuer tribe has reached a point of no return.
"With atrocities carried out by both sides, any attempt to pretend communities at odds with each other can simply forgive and forget is nonsense," the diplomat added.
"Hard work and proper reconciliation, not only among politicians but crucially at community level, will be key... and very hard."
On the ground, the situation appears comparable to that of the 1983-2005 southern civil war when Sudan was a united nation, when the government controlled towns but multiple rebel forces claimed swathes of countryside.
Violence is rooted in decades-old grievances between former rebels turned political leaders, combined with unhealed wounds left over from the civil war that preceded South Sudan's independence from Khartoum in 2011.
Diplomats and mediators from the regional bloc IGAD spoke bluntly of the risks that remained.
"Failure to stop this atrocity and crisis will lead to a protracted conflict that will include all of us," IGAD's special envoy to South Sudan, Seyoum Mesfin, said at the signing ceremony.
Reconciling rivals will need major political changes, said Mahmood Mamdani, a professor at Columbia University in the US and Uganda's Makerere Institute of Social Research, in an article written before the deal.
Warning of a "radically politicised ethnicity", Mamdani said that "opposition to Kiir's leadership is at several levels: personal, ethnic, and ideological".
Before the conflict, Kiir "moved to undercut whatever remained of accountability structures within the state and the party in order to hold on to power".
Jok said people must come together at a local level to strike peace deals too, so that political rivals in the capital do not again trigger battles in the villages.
Jok said such local ceasefires would "serve as the message to our leaders, that over are the times when we get sucked into power struggles on behalf of people who don't care about us and our lives to begin with."