session connection fixes