Astar template + flocking perf improv