add ping method