; (ii) combating human smuggling and trafficking; (iii) improving border security, including preventing illegal migration, human smuggling and trafficking, and trafficking of illicit drugs and other contraband; and (iv) cooperating with United States Government agencies and other governments in the region to facilitate the return, repatriation, and reintegration of illegal migrants arriving at the southwest border of the United States who do not qualify for asylum, consistent with international law. (B) An additional 50 percent may only be obligated after the Secretary of State certifies and reports to the appropriate congressional committees that such government is— (i) working cooperatively with an autonomous, publicly accountable entity to provide oversight of the Plan of the Alliance for Prosperity in the Northern Triangle in Central America (the Plan); (ii) combating corruption, including investigating and prosecuting current and former government officials credibly alleged to be corrupt; (iii) implementing reforms, policies, and programs to improve transparency and strengthen public institutions, including increasing the capacity and independence of the judiciary and the Office of the Attorney General; (iv) implementing a policy to ensure that local communities, civil society organizations (including indigenous and other marginalized groups), and local governments are consulted in the design, and participate in the implementation and evaluation of, activities of the Plan that affect such communities, organizations, and governments; (v) countering the activities of criminal gangs, drug traffickers, and organized crime, including by enacting and implementing effective plea bargaining laws; (vi) investigating and prosecuting in the civilian justice system government personnel, including military and police personnel, who are credibly alleged to have violated human rights, and ensuring that such personnel are cooperating in such cases