refactor ping into paste