replacing swarm with custom replacement