this filter seems to work surprisingly well for the "event" case. However, it gets the arguments in the alternative case wrong most of the time.