connectsession stuff