refs: introduce an iterator interface