added async.eachSeries to getCategories