filter out unwanted messages