ping.t fix errors and clean