added ping API method