added first pinging functionality