attempts to catch and log all failures due to logging attempts. some logic changes and more cleanup.