fixed publish subscribe
Merge pull request #1 from jared-schmidt/publish

fixed publish subscribe