TEMP - fix rewrite logging