basic support for external predicates (no namespacing yet)