added support for pub/sub pattern: subscribe/unsubscribe messages