mimize a race condition, provide a saner debug logging experience