various error_log inspired fixes/warnings