set up control api endpoints