add session and some api calls