added sync method for event dispatching