Nigerians have had few reasons to applaud the performance of their military in recent years.
The country's soldiers mostly stood back as the Islamist militant group Boko Haram rampaged through towns in Nigeria's northeast, murdering villagers, abducting schoolgirls and rapidly expanding their territory. Nigerian troops were better known for deserting their posts than taking on their enemies.
"I was talking to some of the refugees from the areas while I was there last month, and clearly there was a sense that the military had stood back in a lot of circumstances when they could have engaged," says Darren Kew, the executive director of the Center for Peace, Democracy, and Development at the University of Massachusetts Boston.
But during the past few week, the balance of power in the conflict has shifted. Boko Haram has "crumbled" in the past five weeks, Kew says, in part thanks to Nigerian soldiers finally showing some initiative — which he points out "only begs the question: Why was this not done much much sooner?"
Nigerian troops have also gotten help from Nigeria's regional partners, including Niger, Chad and Cameroon.
"Chad in particular has played a very important role in undermining Boko Haram's ability to flee over the borders," Kew says. "Chad even crossed the Nigerian border to liberate a town or two."
They've been joined by South African mercenaries, who Kew says are likely still assisting Nigerian forces. Residents in the north report that some of the militants are now running short of arms and ammunition and resorting to cruder tools, like machetes and bows and arrows.
But that doesn't mean the insurgents are going to disappear any time soon. With their core leadership still intact, Kew expects the group will simply revert back to hit-and-run style attacks. And unless the incoming administration of Mohammed Buhari does more to address extreme poverty in Nigeria's north, he says, there's little hope for stability there.
"If the roots of the conflict are not addressed," he warns, "we'll see some other similar sort of movement in some other part of the impoverished northeast that will rise to take [Boko Haram's] place."