Form finding,agent-based simulation.Ant Colony Optimization

Hey,guys.i try to simulate ant behavior using physarealm plugin in grasshopper. here i set 9 emitters of agent in a brep and let the agent to find the food that i set in brep.the agent will avoid the obstacle.
but the problem is when I try to get the trail of agent.all these line is disconnected.i guess i need adjust the life span of agent by using birth death setting,like this guy did here
here is my gh script

Thanks in advance

agent (9.7 KB)
agent simulation.3dm (312.2 KB)