new email script, removed not used config,