added session debug