populate flags from its parent instead
fixed component index is now a trait
add_component