some cleanup in segments
segmentcollector