fixed main ctrl and emails service