sync index worker end is a pain