pull_all api added, wc alg finished, not tested