fixed up addcomponent on components