improved event publishing