added custoemrs api and preliminary segments api