add pipeline api