update by liao, and modify pipelines