better code for identification of best ping target for ACC, based on patch by github user platbr