basic session library