how is all this going to work with the API?