wiring in with the API, but it doesn't work