<P> While Allied servicemen were ordered to obey local laws while in Germany, soldiers could not be prosecuted by German courts for crimes committed against German citizens except as authorised by the occupation authorities . Invariably, when a soldier was accused of criminal behaviour the occupation authorities preferred to handle the matter within the military justice system . This sometimes led to harsher punishments than would have been available under German law--in particular, U.S. servicemen could be executed if court - martialed and convicted of rape . See United States v. Private First Class John A. Bennett, 7 C.M.A. 97, 21 C.M.R. 223 (1956). </P> <P> The last Allied war advances into Germany and Allied occupation plans were affected by rumors of Nazi plans for insurgency (the Nazi Werwolf plan), and successful Nazi deception about plans to withdraw forces to Alpenfestung redoubt . This base was to be used to conduct guerrilla warfare, but the rumours turned out to be false . It has been estimated that no Allied deaths can be reliably attributed to any Nazi insurgency . </P> <P> The Potsdam conference, where the victorious Allies drew up plans for the future of Germany, noted in article XIII of the Potsdam Agreement on 1 August 1945 that "the transfer to Germany of German populations (...) in Poland, Czechoslovakia and Hungary will have to be undertaken"; "wild expulsion" was already going on . </P> <P> Hungary, which had been allied with Germany and whose population was opposed to an expulsion of the German minority, tried to resist the transfer . Hungary had to yield to the pressure exerted mainly by the Soviet Union and by the Allied Control Council . Millions of people were expelled from former eastern territories of Germany, Poland, Czechoslovakia, Hungary and elsewhere to the occupation zones of the UK, US, and USSR, which agreed in the Potsdam Agreement to absorb the post-war expellees into their zones . Many remained in refugee camps for a long time . Some Germans remained in the Soviet Union and were used for forced labour for a period of years . </P>

Who controlled the four zones of germany and inside berlin