god config and refactor send emails