change method of detecting loaded providers