  if(!isset($GLOBALS['ENV_MYSQL_READ_ONLY']))     $GLOBALS['ENV_MYSQL_READ_ONLY'] = false;
  if(!isset($GLOBALS['ENV_MYSQL_ONLY_MASTER']))   $GLOBALS['ENV_MYSQL_ONLY_MASTER'] = false;
 diff --git a/config/environment.php b/config/environment.php
-index 804789f..bbdaf6a 100644
+index 804789f..4e8b6cc 100644
 --- a/config/environment.php
 +++ b/config/environment.php
 @@ -6,14 +6,15 @@ if(!isset($GLOBALS['DEFAULT_TIMEZONE'])) $GLOBALS['DEFAULT_TIMEZONE'] = 'America
  date_default_timezone_set($GLOBALS['DEFAULT_TIMEZONE']);  // Required by resque...
- 
+
  /* best to leave the PHP settings at the top in case they are overridden in another environment */
 -ini_set('memory_limit', '1024M'); // 1GB maximum memory usage
 -ini_set('max_execution_time', '21600'); // 6 hours

+if(!isset($GLOBALS['ENV_MYSQL_DEBUG'])) $GLOBALS['ENV_MYSQL_DEBUG'] = false;
+if(!isset($GLOBALS['ENV_DEBUG_TO_FILE'])) $GLOBALS['ENV_DEBUG_TO_FILE'] = true;
 if(!isset($GLOBALS['ENV_DEBUG_FILE_FLUSH'])) $GLOBALS['ENV_DEBUG_FILE_FLUSH'] = false;
 
 if(!isset($GLOBALS['ENV_ENABLE_CACHING'])) $GLOBALS['ENV_ENABLE_CACHING'] = true;
@@ -37,13 +39,15 @@ if(!defined('SPARQL_UPLOAD_ENDPOINT')) define("SPARQL_UPLOAD_ENDPOINT", "http://
 if(!defined('SPARQL_USERNAME')) define("SPARQL_USERNAME", "dba");
 if(!defined('SPARQL_PASSWORD')) define("SPARQL_PASSWORD", "dba");
 
+if(!defined('DOWNLOAD_TIMEOUT_SECONDS'))    define('DOWNLOAD_TIMEOUT_SECONDS', '45');
+
 /* Initialize app - this should be towards the top of environment.php,
    but declare the WEB_ROOT and caching settings first.
    This will load values from ./environments/ENV_NAME.php before values below
 */
 require_once(dirname(__FILE__) . '/boot.php');
 
-// $GLOBALS['log_file'] = fopen(DOC_ROOT . "temp/processes.log", "a+");
+$GLOBALS['log_file'] = fopen(DOC_ROOT . "temp/processes.log", "a+");
 
 
 
@@ -83,12 +87,12 @@ php_active_record\require_vendor('eol_content_schema_v2');
 
 
 /* For content downloading */
-# where harvested media will be downloaded to (must be web accessible)
-if(!defined('CONTENT_LOCAL_PATH'))          define('CONTENT_LOCAL_PATH',            DOC_ROOT . 'applications/content_server/content/');

 # where resource XML files will be downloaded to
-if(!defined('CONTENT_RESOURCE_LOCAL_PATH')) define('CONTENT_RESOURCE_LOCAL_PATH',   DOC_ROOT . 'applications/content_server/resources/');
+if(!defined('CONTENT_RESOURCE_LOCAL_PATH')) define('CONTENT_RESOURCE_LOCAL_PATH',   '/opt/resources/');
 if(!defined('CONTENT_GNI_RESOURCE_PATH'))   define('CONTENT_GNI_RESOURCE_PATH',     DOC_ROOT . 'applications/content_server/gni_tcs_files/' # where datasets prepared by app servers will reside (must be web accessible)
 if(!defined('CONTENT_DATASET_PATH'))        define('CONTENT_DATASET_PATH',          DOC_ROOT . 'applications/content_server/datasets/');
@@ -96,8 +101,6 @@ if(!defined('CONTENT_DATASET_PATH'))        define('CONTENT_DATASET_PATH',
 // this may not be needed anymore
 if(!defined('WEB_ROOT')) define('MAGICK_HOME', '/usr/local/ImageMagick/');       // path to ImageMagick home directory

-// Resque:
-if(!defined('RESQUE_HOST')) define('RESQUE_HOST', 'localhost:6379');
 /* table data which will not get cached - there are too many rows */
 $GLOBALS['no_cache']['agents']              = true;
 $GLOBALS['no_cache']['canonical_forms']     = true;
@@ -116,7 +119,6 @@ $GLOBALS['no_cache']['taxon_concept_names'] = true;
 $GLOBALS['no_cache']['taxon_concepts']      = true;


-
 /* Set your working development environment
    if a web request and there is a paremeter ENV_NAME=$ENV that gets priority
    if a CLI request and there is an argument ENV_NAME=$ENV that gets second priority
diff --git a/lib/ArchiveDataIngester.php b/lib/ArchiveDataIngester.php
index b640f6a..b3b6cc3 100644
--- a/lib/ArchiveDataIngester.php
