some error checks/debug flags
Merge remote-tracking branch 'origin/auto_update' into auto_update
Merge remote-tracking branch 'origin/auto_update' into auto_update
debug flags for log issues
Merge remote-tracking branch 'origin/auto_update' into auto_update
Move cat-ing the log lower than it's creation so it isn't overwritten.

pleebus.
Merge remote-tracking branch 'origin/auto_update' into auto_update
remove export since we handle that with set -a.

some more final cleaning and removal of debug flags