why isn't the API working