clean up messages file