supporint ping

supporint ping
refacoter handler code