some modifications + content-based pubsub example