handle empty url in cleanupURL function
Add more debugging for bandwidth