cleanup unused messages