add spec for connected components