removes segment service code
furether removes segment service
adds read implementation