updated worker to avoid fetching redundant accounts