updated to work with a url from command line