removed the use of urllib2 for now