added support for cond attribute that allows for extending target matching with arbitrary tests