promisfied the ping sending so its easier to hook into the control flow