begin of session retrieval