ping functionality added