add middleware to handle sendgrid json issues :(