cleanup of msgs