refactored the existing pubsub client into the two concerns - pubsubbing and parsing and dealing with the messages