cleanup and added support for falling back to single request if partial downloads is unsupported by the server