Adding publish/refCount to events