change to session id
introduce application state attributes