working through the API