add support for publish/subscribe commands