modified publish and hlinted