tweaked the URLtoFile function a titbit