added audit error emailing