begin to add doc for session handling