real template version of PIPELINE