events publishes on next tick now, example slightly improved