implement predicates for iq/message/presence