add logging to ping