before sendgrid