reworked audit file creation