first draft of pipeline and pipeline_stages