minor fixes for sendgrid provision