smarter pinging