client code for audit trails