SegmentServiceAdapter and SegmentController. both implementations not yes finished and woring.