added a url constructor