added event log fuction and queue runner