ported ping plugin to the new api