add if app["component_instances"] in the end