update Session class and all related classes