Many bacterial species are able to synthesize flagella, long proteinaceous helical fibres that extend from the cell's surface. Rotation of the flagellar helix, mediated by a membrane-embedded motor, enables efficient active movement of the cell through liquid environments (swimming) or across surfaces (swarming) (Kearns, 2010;Thormann et al., 2022;Wadhwa & Berg, 2022). In addition, the flagellum can serve as an adhesive or pathogenicity factor or as a sensor the bacteria use to determine environmental conditions such as viscosity or surface wetness (Chaban et al., 2015;Laventie & Jenal, 2020). The flagellum is an intricate nanomachine, which -in its general design -is well-conserved between different bacterial species. It consists of the helical filament, the cell envelope-embedded basal body housing the rotary motor and a type III export apparatus, and a universal joint structure, the hook, which connects the motor and filament (Figure 1a) (Johnson et al., 2021;Tan et al., 2021). The whole structure is formed from about 20 different protein building blocks with different stoichiometries ranging from one to nine copies, e.g. for parts of the flagellar type III export system (fT3SS), to many thousands of the main filament building block, the flagellin