changed api setup