finally, got this working
getting the API working...