load event handler before publish event