implemented audit function call in lua layer