cleaned up logger_setup