troubleshoot session handling