worked on ping handling.