working pub/sub. fixed context issue