convert publisher to object