minor api setup work