add getCapabilities in PingCommand