see #1156 - added some logging