make it so that component name and ns can be read from instance