adding error handling for bad download urls