Tripoli - Security concerns loom large in the minds of Libyans and international observers in the run-up to the first democratic elections after four decades of dictatorship under slain leader Muammar Gaddafi.
There is no shortage of actors who have threatened to boycott or sabotage the landmark vote on Saturday, raising tensions particularly in the east of North African desert nation, cradle of the 2011 uprising that toppled Gaddafi’s regime.
Interim government spokesperson Nasser al-Manaa late on Wednesday called on "all Libyans to participate, protect and take pride in these elections which are a step towards stability and development".
Security services have warned that supporters of the former regime may seize the opportunity to disrupt the vote to elect a national assembly, which will be tasked with appointing a new government and a constituent authority.
The weeks before the elections have been marred by fighting between different communities, with bloody clashes in western hilltop towns claiming more than 100 lives and a fresh bout of fighting in Kufra in the south leaving dozens dead.
And international organisations such as the United Nations and the International Committee for the Red Cross have become, along with diplomatic missions, a focal point of damaging but so far not deadly attacks.
On Tuesday, the Brussels-based International Crisis Group warned that the electoral process in Libya is "imperilled by armed protesters who... are threatening to disrupt the vote in the eastern part of the country".
Armed men on 1 July ransacked election offices in the city of Benghazi.
The interim government, Manaa said, is still negotiating with separatist groups in the east, which have been demonstrating and disrupting traffic on a strategic highway linking the east and west.
Such factions reflect a pro-federalism movement demanding a greater share of seats for the east in the national assembly. Currently, there are 100 seats for the west, 60 for the east and 40 for the south.
These are the loudest voices calling for a boycott of the elections. Islamist groups in the east also oppose the vote, saying the Muslim country needs no constitution other than the Koran.
Libya's interim rulers say that radical Islamists are a minority.
"There are problems here and there but we don't think that they will affect the elections," Salem Genan, deputy chairman of the ruling National Transitional Council, said in broadcast remarks.
"We are very optimistic," he added.
But the authorities are taking no chances in a country awash with weapons. The interior ministry has enlisted 45 000 members of the Supreme Security Committee to ensure the safety of polling stations across 72 constituencies.
Army chief Yussef al-Mangush said on Tuesday that "the army has mobilised 13 000 troops for the nascent national army to support interior ministry forces to implement election day security plans".
He added that the national army will take responsibility for transporting ballot papers and that there will be special patrols on that day to protect the coastline and safeguard Libyan airspace.
Security forces will also man checkpoints on the perimetres of every town.
Omar al-Khadrawi, deputy interior ministry and head of the electoral security committee, said that security forces are on "high alert" and "an operations room has been set up in Tripoli."
Former rebels who are still organised into brigades, some of which have been absorbed into government forces, are expected to play a role in ensuring security in the elections.
But they are also a source of potential problems.
Amnesty International warned in a report published on Thursday that there is no real control over these armed groups, which often clash with each other, and that they risk derailing an already delicate transition process.
"It is deeply depressing that after so many months, the authorities have failed so comprehensively to break the stranglehold of the militias on Libyan security," said the rights group's Hassiba Hadj Sahraoui.
"Without immediate action to stop abuses and lawlessness, there is a very real danger Libya could end up reproducing and entrenching the same patterns of violations we have seen over the past four decades," she warned.
One Amnesty concern is the fate of thousands of people detained by militias.