connect swarm context to network