added global connected state