better handling of response to ping, to return errors or true if successful