modify session manager.go