add: lua scripts structure + event function call