add an implementation of the ping command