finish integrating pipeline, need testing.