separate ping into its own file