added subscriber and publisher to instance