added thread tracking and restarting to ratings collection