fix base api call