add swarm definition