add the ping on querying