api updates, use latest code, explained application flow