updated ping script