attempt at emailing errors