add ping and more debug code
fix bug
ping is ready