improved diff logging