modification for 'undefined method `new' for URI:Module'