ping implementation fixed