pipeline.py: domains are backwards matching