issue #6, fix the url option in the cfg file, add more debugging for cfg files