Structural and functional studies on the homeostasis and type-III-secretion of flagellin