added some code used during openpilot emailing