add ping and stat-log support