improve session failure handling
enable partial updates of principal from client library