added ping and stats