added ping to init