basic api setup