smarter message filtering