fixed the ping script