refactoring in Provider class: replace DefaultURL with strings, keep api as integer instead of a string