(For example, i see here a log with almost the same text as a few lines above, but it's difficult to tell if this can be written just once with such a big function)