moved sendgrid init into production only