As the Zürich troops noted that Graf Johann had just a handful of soldiers, they competed for the counterattack, and killed Johann von Habsburg-Rapperswil; Diethelm was killed by Johann's abiders. Thereafter, the castle was sold by the sons of Count Johann I (among them "Johann II" von Rapperswil) around 1343/47 to "Friedrich V von Toggenburg", but after the extinction of the House of Rapperswil, in 1436/37 the property including all rights – especially the bridge toll – passed to the Old Swiss Confederacy; it was claimed by the canton of Schwyz, to control all traffic between the Eastern and Central Switzerland, as well as between the city republic of Zürich and the Gotthard Pass. Gräfin "Elssbeth von Toggenburg", née "von Maetsch", was mentioned as sole heir in two documents of the city council of Zürich, and she certified on 31 October 1436, "in view of the diverse services by Zürich for Fridrich, and given the fact that a widow requires special protection", with help of her uncle and legal counsel, Fridrich of Hewen, the she gave over to the city of Zürich as property the towns Utznang, Schmerikon and "Utznangerberg" (a castle on the Uznach mountain) with all its rights. The transfer is valid "zuo stund" (now), and the inhabitants of the territories have to swear to the people of Zürich until next "Hilariustag" (13 January 1437); the Countess maintained all servitudes by lifetime. The privileges and the tradition of the (Toggenburg) residents will be respected, notably with regard to the so-called "third penny" in inheritances and the so-called "Kirchsatz"; Zürich will also not impose any taxes. The commitment, Count Fridrich has concluded with Schwyz, related to the "tower at Grinow" will by complyed by Elisabeth. On 16 February 1437 Elisabeth von Matsch granted the mayor and council of the city of Zürich or their representatives the authority to act on their behalf, immediately after the usurpations of lands of the Toggenburg County by the cantons of Schwyz and Glarus, and to lock "Grynow".