if there is just one connection, manage it as local state