some improvements to initProximityAlerts