working pub sub modification to redistogo