moved protected functions of SessionManager down to the bottom