ugh, I give up, just flush the buffers after every log x_x