filter out undesirable messages