modify the moquette, clean stored msgs after republishing