changed ping to act as a module