use URL to build the url object