logging - see comments to 9f69fc0f13389579c5646776072793ca8bf00798