add subcomponent to namespace