added first api call wrapping