refactored to avoid saving url result in local file