message detail cleanup