threadprovider uses repository not the manager