begin implementing segment.io.