ping will fail before connect
remove debug code