refactor: refactor base on pipeline. [WIP]
fix: clean up.
refactor: new interface.