some code touch up

milestone for the publish event functionality