api: move to foreach
dist: 1.0.4