added first session managing functionality