Afghanistan nears deal on US troops" stay KABUL, Afghanistan - The US and Afghanistan reached an agreement in principle on Saturday on the major elements of a deal that would allow American troops to stay in Afghanistan after 2014. US officials said the potentially deal-breaking issue of jurisdiction over those forces must still be resolved. US officials travelling with John Kerry, US secretary of state, said the deal negotiated with Afghan President Hamid Karzai meets all US conditions, including on the jurisdiction issue, and that all that remains is for Mr Karzai to win political approval for it. During the talks, Mr Kerry made frequent phone calls back to Washington, speaking with Chuck Hagel, secretary of defence, and Susan Rice, national security adviser, multiple times, the officials said. The US contingent was hopeful that a national consultative assembly of tribal elders, or Loya Jirga, and the Afghan parliament would approve the agreement, the officials said. They requested anonymity because they were not authorised to discuss the agreement by name. Mr Kerry spoke with Mr Karzai after a marathon series of meetings and repeated delays of Mr Kerry's departure from Afghanistan. Both men later said agreement had been reached on a series of contentious sovereignty issues and the safety of Afghan citizens at the hands of US and allied troops that had deadlocked talks in the past year. But Mr Karzai said he would put the issue of who has jurisdiction for any crimes committed by US forces in Afghanistan after 2014 to the Loya Jirga that he has asked to be convened within a month. Their opinion on whether to approve or disapprove a US demand that its forces be remanded to US military courts would then be sent to the Afghan parliament. Mr Kerry responded that any decision made by the Loya Jirga and parliament would be respected, but he added that if the jurisdiction issue was not resolved there would be no agreement. In Iraq, a similar deal fell apart after US officials were unable to reach an agreement with the Iraqis on the same issue that would have allowed a small training and counterterrorism force to remain there. The US completely pulled out of Iraq after the deal collapsed. The jurisdiction issue came to the fore after an American soldier, Staff Sgt Robert Bales, killed 16 people in two villages in southern Afghanistan last year. He was convicted in August by a military court and sentenced to life in prison with no chance of release. Mr Kerry explained that the issue should not be equated with immunity, as it is perceived by many Afghans. He said the US would prosecute any wrongdoing and that similar agreements existed with many countries, such as Japan and South Korea. Mr Kerry began negotiations with Mr Karzai in the morning, the second day of talks after he arrived late Friday. He left shortly after the last meeting, headed for Europe and the US. Discussions had repeatedly stalled in recent weeks over Mr Karzai's demand for US guarantees against future foreign intervention from countries such as Pakistan, and US demands for any post-2014 residual force to be able to conduct counterterrorism and counterinsurgency operations. The situation deteriorated in the past week following a series of angry comments from Mr Karzai that the US and Nato were repeatedly violating Afghanistan's sovereignty and inflicting suffering on its people. Mr Karzai has been reticent to sign a deal, worried about his legacy and possibly because of a lingering bitterness over what he considered as foreign meddling in the 2009 presidential vote that almost cost him the election. Having completed a second term, he is not eligible to run in the April 5 presidential elections. He is keenly aware that previous leaders of his country historically have been punished for selling out to foreign interests and wants to make sure that any US-Afghan agreement is not seen in that light. There currently are an estimated 87,000 international troops in Afghanistan, including about 52,000 Americans. That number will be halved by February and all foreign combat troops will be gone by the end of next year. The US wants to keep as many as 10,000 troops in the country to go after the remnants of al-Qaeda, but if no agreement is signed, all US troops would have to leave by December 31 2014. President Barack Obama said he would be comfortable with a full pullout of US troops.