update download_object() method