renamed getBaseUri to getBaseUrl, added getScheme method