pipeline.py: change order of input links