[CORE] remove broken PING "support" and use a switch instead of a bunch of if then else.