the former Prussian sector of railways. One year later, the fights for Lwów were over and the former Austrian railway directorate was taken over by Poland. Taking over the railways from Prussians lasted until 1921. After the victory over the Red Army in the Polish-Bolshevik War (1920), a great deal of damage in railway structure was discovered on the route along which the communists were retreating. At the same time, the tense relations with Lithuania led the railways around Vilnius and Minsk to a partial disintegration and stagnation. The Libau–Romny Railway was not recovered. Polish railways administration finally took over the railways in Upper Silesia in 1922. That same year, a decision was made to divide railways in Poland into nine administrative districts. An economic crisis in the 1930s forced the state to cut back its budget for railway investment. Profit decreased by 50% compared to 1929. The next year, over 23,000 PKP employees had been dismissed and protests and strikes causes authorities to try to find a solution. The end of the crisis and an increase in cargo transport and income came in 1937. On 1 September 1939, the railwaymen of Szymankowo stopped a German armoured train before its arrival on the bridge over the Vistula River and the Polish soldiers reattached the explosive charges disconnected by the German dive bombers and blew up the bridge. The railwaymen and some of their innocent family members were executed by the Germans the same day, 1 September 1939. After the Soviet invasion of eastern Poland on 17 September 1939, most Polish rolling stock fell into Soviet hands. The Polish railways in Silesia, Greater Poland and Pomerania were adopted by German railways Deutsche Reichsbahn on 25 September. The Polish railways in Generalgouvernement became Ostbahn. Until the last moment before the German attack on the Soviet Union in 1941, cargo trains transported goods from the Soviet Union to Germany. The beginning of German attacks on the Soviet Union on 22 June 1941 resulted in the possession of railway and rolling stock by the Ostbahn and the possession of PKP rolling stock with broad gauge track and reconstruction to standard gauge. The beginning of organized sabotage by the Polish resistance movement on railways took place about the same time. In 1942, production of simple military-use DR Kriegslok BR52 (PKP class Ty2) steam locomotives began in Poznań and Chrzanów; the steam boilers for these locomotives