got API working