GOGJALI, IRAQ - Iraqi troops were moving cautiously Thursday in a neighborhood just inside the city limits of Mosul, going from house-to-house to ensure the safety of civilians. The soldiers had to be wary of booby-trap bombs as well as ambushes and sniper fire from Islamic State militants, who are being urged by their leader to remain and resist losing the last major city they hold in Iraq.

The breach into the city of Mosul, which IS seized more than two years ago, triggered an exodus of hundreds of families. They started to stream out of Mosul, some carrying white flags, others flashing victory signs at elite government troops with Iraq’s U.S.-trained Golden Division, which spearheaded victories this year at Fallujah and elsewhere in Iraq against the jihadists.

House-to-House Battle in Mosul as Iraqis Press Islamic State

While locals in the eastern district of Gogjali welcomed their liberation from the jihadists, fears are mounting that, as neighborhoods in the more pro-IS western parts of the city fall to government troops, a cycle of retaliation and revenge will be triggered, both by locals who suffered under the jihadists’ two-year reign over Mosul and by Sunni militiamen, who have already been accused of carrying out revenge attacks on men and boys in nearby villages suspected of having ties to IS.

House-to-House Battle in Mosul as Iraqis Press Islamic State

Rights group Amnesty International said Wednesday it had received reports of alleged jihadist sympathizers being publicly humiliated, tortured and beaten as fighters with a militia called the Sabawi Tribal Mobilization swept through villages to the south of the city. Lynn Maalouf from Amnesty said there was a "dangerous culture of impunity in which perpetrators of such attacks feel they have free rein to commit crimes and go unpunished.”

House-to-House Battle in Mosul as Iraqis Press Islamic State

Retaliation wasn’t visible Thursday as the elite Iraqi counter-terrorism forces wearing their trademark black combat fatigues sought to consolidate their hold on the Gogjali district and nudge into neighboring ones. Their commanders and a Kurdish peshmerga general overseeing a battle on the outskirts of the Mosul say they are only at the first stage in a prolonged and fierce urban battle, and they are ready for weeks of house-to-house fighting.

They suspect IS militants will blow up the five bridges spanning the River Tigris that cuts through the city and will make a final stand in the west of Mosul.

“At best it will take a month, at worst two months,” Peshmerga Gen. Nuraddin Tatarkhan told VOA. Booby-trap bombs triggered mainly by pressure pads are among the biggest danger for advancing forces, as well as sniper fire.

“They keep changing the designs of their bombs,” he said.

Sorry, but your browser cannot support embedded video of this type, you can to view it offline.

A veteran of Saddam Hussein’s army, Gen. Tatarkhan recognizes the military tacticians among the IS leadership as former Baathists and veterans like him of the Iran-Iraq and Gulf wars. Their tactics, he says, will be to drag out the resistance, copying what they did to attack U.S. forces after the ouster of Saddam Hussein. He also warns there are many foreign IS fighters in Mosul — among them battle-hardened and highly fanatical Chechens and Kazakhs who will fight to the bitter end.

The foreign fighters, he says, will likely heed the call by their leader Abu Bakr al-Baghdadi, who on Wednesday broke a nearly yearlong silence with a 31-minute audio recording urging his forces to remain firm in the face of the offensive on Mosul.

“Know that the value of staying on your land with honor is a thousand times better than the price of retreating with shame,” he said, adding: “This war is yours. Turn the dark night of the infidels into day, destroy their homes and make rivers of their blood.”

For those IS fighters who do want to flee Mosul, their escape route has been made much harder. Shi’ite militiamen with the Iraqi Popular Mobilization Units working on the west of the city said Thursday they have control of a large portion of the Aleppo-Mosul Highway that runs to the terror group's main Syrian stronghold at Raqqa.

To escape west into Syria, IS militants will have to navigate much more difficult roads, which as the rains come will be much harder to move along to enter the Syria’s eastern provinces of Deir Ezzor and Al-Hasakah.

On Thursday, civilians could be seen leaving Mosul, heading for camps to the east of the city, trudging along roads with toddlers and helping elderly family members. Many of the women wore niqabs covering their faces. Some men still wore the short trousers and long beards demanded by the jihadists, but others had quickly shaved, saying they were relieved to be able to do so. Some men relished smoking their first cigarettes in public in two years.