UNITED NATIONS (AP) — The new U.N. special envoy for Libya urged foreign forces and mercenaries Wednesday to leave the conflict-stricken country as demanded in last year's cease-fire agreement.

Jan Kubis, addressing the U.N. Security Council, warned against “pitfalls” that could obstruct or delay elections in December aimed at providing a unified government for the nation after years of division.

Kubis said the cease-fire agreement continues to hold but foreign forces and mercenaries haven’t left and “there are reports of ongoing fortifications and the setting up of defensive positions” along the key axis in central Libya from the strategic city of Sirte to the nearby Jufra area.

“Their withdrawal from Libya will go a long way in reconstituting the unity and sovereignty of the country and healing the deep wounds caused by many years of internal strife, active conflict and foreign interference,” he said.

Kubis added that elements of the Islamic State group continue to operate in the country.

The U.N. envoy urged continued support for Libyan authorities to “act against international terrorism and to fight unlawful armed groups and organized crime networks plaguing the country, which is critical for the stability of Libya.”

A recently released report by U.N. experts accused several foreign governments of turning the oil-rich country into a stage to play out rivalries and ignoring U.N. sanctions and a decade-long U.N. arms embargo, which it said has remained “totally ineffective.”

The experts identified Turkey and Qatar as the backers of forces loyal to the U.N.-supported administration in Tripoli, to the west, while the United Arab Emirates, Russia, and Egypt have supported Khalifa Hifter, the military commander controlling eastern and southern parts of Libya.

The report details how they fueled the conflict in Libya, which descended into chaos in 2011, when a NATO-backed coalition helped rebels overthrow longtime autocrat Moammar Gadhafi, who was later killed. It documented dozens of arms shipments, including drones, surface-to-air missiles, artillery pieces and armored vehicles. It also documented the deployment of mercenaries — Russians, Syrians, Sudanese, Chadians and others — brought to Libya to bolster its warring sides, especially in the offensive Hifter’s forces launched in April 2019 to try to capture the capital Tripoli from the U.N.-supported government.

Hifter's campaign collapsed in mid-2020 and his fighters were forced to retreat to Sirte, in large part due to heavy Turkish military support for their rivals. The failure of the offensive led to the October cease-fire and the formation of an interim government charged with leading the country to elections which took power on March 16.

Kubis said holding elections on Dec. 24, which are strongly supported by Libya’s increasingly young population, “should remain a key focus for the new interim executive authority and state institutions.”

He called on the House of Representatives to urgently adopt the Feb. 12 agreement approved by its constitutional committee and the High Council of State on the constitutional basis for the presidential and parliamentary elections. And he said “it is imperative"" to start working immediately on election laws, which the High National Elections Commission says need to be adopted by July 21 at the latest for voting to take place on Dec. 24.

As the U.N. and the international community consider how best to advance the interim government’s priorities, Kubis said, “we should be mindful of the pitfalls on the road ahead, in particular those aiming to delay or obstruct the path toward the December elections.”

While the cease-fire has dramatically reduced civilian casualties, Kubis said, the U.N. political mission in Libya that he heads “continues to document killings, enforced disappearances, sexual violence, including rape, arbitrary arrests and detentions, attacks against activists and human rights defenders and hate crimes.”

Kubis also pointed to the more than 8,850 people arbitrarily detained at 28 official prisons in Libya, with an estimated 60-70% in pre-trial detention, and some 10,000 people detained in centers under the authority of militias and armed groups,. They include an estimated 480 women — 184 of them foreigners — and 63 children.

The U.N. mission “continues to receive credible reports of arbitrary and unlawful detention, torture, enforced disappearances, extra-judicial killings, denial of visits from families and lawyers, and deprivation of access to justice,” he said.

Kubis said Libya faces “an acute electricity crisis this summer” and U.N. agencies estimate that over 4 million people, including 1.5 million children, may lack clean water and sanitation “if immediate solutions are not found and implemented.” In addition, 450,000 Libyans need humanitarian aid but the U.N.’s $189 million appeal is only 5% funded.