a step toward setting up a rest service to get the segment change call