changing multiple external APIs to just one