finished segment.io integration