removed global state for pipeline-state