debugging for session