To avoid the exceeding stack size, I suggest to use async.forEach() instead of async.forEachSeries() :-)