final fix exitcode/mail