spawn objects correctly, with an iterator cb