now using the ping_cm function from the lib