removed main from emailDispatcher