session renamed to document