modify use of swarm to not make duplicate connections