empty map isnt sufficient to trigger an output stage... this really needs a foreachWithIndex operation