fix parsing of old style urls.  Clean up some error messages.