added ping method