minor fixes, added delay, better groupByBrand