adapt script to improve location data for events