allow specifying custom base URL for testing/mocking