changed to async.eachSeries