update to new check ping function