bug that sneaked in. typed set_session_var instead of self.set_session_var