cleaning; fix bug with publish and flag puff