added ext methods for flocking demo