wire up the API