finish copying pipeline API to cljs side