move pipeline processing to same place as hoisting