better scripted routing / callback function for hitting waypoints