fix: refactor the session manager, moving direct to the interceptor.