refactored uri to url