improved session across api