changing ping to event emitter and getting rid of mailer