in 1382, vytautas escaped from kreva. he sought help from the teutonic order, who were negotiating with jogaila at the time. jogaila and the order agreed to the treaty of dubysa, by which jogaila promised to accept christianity, become an ally of the order, and give the order part of samogitia up to the dubysa river. however, the treaty was never ratified. in summer 1383, the war between jogaila and the order resumed. vytautas was baptised as a catholic, receiving the name of wigand (lithuanian: "vygandas"). vytautas participated in several raids against jogaila. in january 1384, vytautas promised to cede part of samogitia to the teutonic order, up to the nevėžis river in return for recognition as grand duke of lithuania. however, in july of the same year, vytautas broke with the order and reconciled with jogaila. he then burned three important teutonic castles, and regained all kęstutis' lands, except for trakai.