add mechanism to publish entity changes