debug.log only gets outputted in debug mode now