got api to work