change to using an array to map services to url endpoints